package day240525.String_demo;


import day240508.Practice.MyUtil;

public class Test2 {
    //单位毫秒
    public static void main(String[] args) {
        int[] is = {10, 1000, 10000, 500000};
        for (int i = 0; i < is.length; i++) {
            // String `+`
            MyUtil.calculateTime(new StringPlus(is[i]));

            // StringBuffer append 方法
            MyUtil.calculateTime(new StringBufferAppend(is[i]));

            // StringBuilder append 方法
            MyUtil.calculateTime(new StringBuilderAppend(is[i]));

            System.out.println("--- --- ---");
        }

    }
}